Class IPCManagerImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.system.impl.IPCManagerImpl
All Implemented Interfaces:
IPCObject, IPCManager

public class IPCManagerImpl extends IPCObjectImpl implements IPCManager
Information provided by the PKI file:

    \class IpcManager
    
    \brief IpcManager serves as the entry point for the IPC and manages ExApps and Script Modules.
    
    \example ipcManager()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getListeningPort

      public int getListeningPort()
      Information provided by the PKI file:
      
          \brief Returns the listening port for IPC.
          
          \return int, the listening port for IPC.
          
              
      Specified by:
      getListeningPort in interface IPCManager
      Returns:
      int Returns a int
    • launchCep

      public boolean launchCep(String cepId)
      Information provided by the PKI file:
      
          \brief Launches the ExApp with the specified ID.
          
          \param cepId, the ID of the external process.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      launchCep in interface IPCManager
      Parameters:
      cepId - Takes in a parameter of cepId
      Returns:
      boolean Returns a boolean
    • setExclusive

      public boolean setExclusive(boolean exclusive)
      Information provided by the PKI file:
      
          \brief Disconnects all other external processes and locks new connections to this external process' ID only.
          
          \param exclusive, true to disconnect all external processes of different IDs, false to allow new connections from other external processes.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      setExclusive in interface IPCManager
      Parameters:
      exclusive - Takes in a parameter of exclusive
      Returns:
      boolean Returns a boolean
    • putSaveData

      public boolean putSaveData(UUID saveId, String saveData)
      Information provided by the PKI file:
      
          \brief Saves data with the specified UUID.
          
          \param saveId, the UUID of the save data.
          \param saveData, the data to save.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      putSaveData in interface IPCManager
      Parameters:
      saveId - Takes in a parameter of saveId
      saveData - Takes in a parameter of saveData
      Returns:
      boolean Returns a boolean
    • getOpenData

      public String getOpenData(UUID openId)
      Information provided by the PKI file:
      
          \brief Returns the save data with the specified UUID.
          
          \param openId, the UUID of the save data.
          
          \return QString, the save data with the specified UUID.
          
              
      Specified by:
      getOpenData in interface IPCManager
      Parameters:
      openId - Takes in a parameter of openId
      Returns:
      String Returns a String
    • thisInstance

      public CepInstance thisInstance()
      Information provided by the PKI file:
      
          \brief Returns the CepInstance object for this instance.
          
          \return CepInstance, the CepInstance object for this instance.
          
              
      Specified by:
      thisInstance in interface IPCManager
      Returns:
      CepInstance Returns a CepInstance
    • sendMessageTo

      public boolean sendMessageTo(String cepId, String msg)
      Information provided by the PKI file:
      
          \brief Sends a message to the local instance with the specified ID.
          
          \paran cepId, the ID of the local instance.
          \paran msg, the message to send.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      sendMessageTo in interface IPCManager
      Parameters:
      cepId - Takes in a parameter of cepId
      msg - Takes in a parameter of msg
      Returns:
      boolean Returns a boolean
    • sendMessageToInstance

      public boolean sendMessageToInstance(UUID cepInstanceId, String msg)
      Information provided by the PKI file:
      
          \brief Sends a message to the local instance with the specified UUID.
          
          \paran cepInstanceId, the UUID of the local instance.
          \paran msg, the message to send.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      sendMessageToInstance in interface IPCManager
      Parameters:
      cepInstanceId - Takes in a parameter of cepInstanceId
      msg - Takes in a parameter of msg
      Returns:
      boolean Returns a boolean
    • sendMessageToAll

      public boolean sendMessageToAll(String msg)
      Information provided by the PKI file:
      
          \brief Sends a message to all instances.
          
          \paran msg, the message to send.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      sendMessageToAll in interface IPCManager
      Parameters:
      msg - Takes in a parameter of msg
      Returns:
      boolean Returns a boolean
    • sendMessageToRemote

      public boolean sendMessageToRemote(String cepId, String msg)
      Information provided by the PKI file:
      
          \brief Sends a message to the remote instance with the specified ID.
          
          \param cepId, the ID of the remote instance.
          \paran msg, the message to send.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      sendMessageToRemote in interface IPCManager
      Parameters:
      cepId - Takes in a parameter of cepId
      msg - Takes in a parameter of msg
      Returns:
      boolean Returns a boolean
    • sendMessageToRemoteInstance

      public boolean sendMessageToRemoteInstance(UUID cepInstanceId, String msg)
      Information provided by the PKI file:
      
          \brief Sends a message to the remote instance with the specified UUID.
          
          \param cepInstanceId, the UUID of the remote instance.
          \paran msg, the message to send.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      sendMessageToRemoteInstance in interface IPCManager
      Parameters:
      cepInstanceId - Takes in a parameter of cepInstanceId
      msg - Takes in a parameter of msg
      Returns:
      boolean Returns a boolean
    • registerOpenFileType

      public boolean registerOpenFileType(String fileExtension)
      Information provided by the PKI file:
      
          \brief Register a file extension to be opened by this CEP instance if the file is opened from PT GUI or OS.
          
          \arg fileExtension, the extenstion to register
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      registerOpenFileType in interface IPCManager
      Parameters:
      fileExtension - Takes in a parameter of fileExtension
      Returns:
      boolean Returns a boolean
    • unregisterOpenFileType

      public boolean unregisterOpenFileType(String fileExtension)
      Information provided by the PKI file:
      
          \brief Unregister a file extension to be opened by this CEP instance if the file is opened from PT GUI or OS.
          
          \arg fileExtension, the extenstion to unregister
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      unregisterOpenFileType in interface IPCManager
      Parameters:
      fileExtension - Takes in a parameter of fileExtension
      Returns:
      boolean Returns a boolean